'use strict';

function Connection() {
    var connect = new ActiveXObject("ADODB.Connection");
    var connectionString = "Data Source =<server>;User ID=<sa>;Password=<123456>";
    connect.Open(connectionString);

    var rs = new ActiveXObject("ADODB.Recordset");
    var table = "Select * from Users";
    rs.Open(table, connect);
    rs.MoveFirst;
    while (!rs.eof) {
        document.write(rs.fields(1));
        rs.movenext;
    }
    rs.close;
    connect.close;
}